<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<table class="table table-striped table-bordered table-condensed">
	<tr>
		<th>执行环节</th>
		<th>执行人</th>
		<th>开始时间</th>
		<th>结束时间</th>
		<th>提交意见</th>
		<th>任务历时</th>
	</tr>
	<c:forEach items="${histoicFlowList}" var="act" varStatus="status">
		<tr>
			<c:if test="${act.status != 'claim'}">
				<td>
				<c:if test="${status.index == 0 and empty act.histIns.activityName}">开始</c:if>
				<c:if test="${status.index != 0 and not empty act.histIns.activityName}">
				   ${act.histIns.activityName}
				</c:if>
				<c:if test="${status.index == histoicFlowList.size()-1 and empty act.histIns.activityName}">
				         结束
				</c:if>
				</td>
				<td>
				    <c:if test="${act.assigneeName != null && act.histIns.endTime !=null}">${act.assigneeName} </c:if>
					<c:if test="${act.assigneeName != null && act.histIns.endTime ==null}">${act.assigneeName} </c:if>
				</td>
				<td>
				    <c:if test="${act.histIns.activityName != 'End'}">
					<fmt:formatDate value="${act.histIns.startTime}" type="both" />
					</c:if>
				</td>
				<td>
				    <c:if test="${act.histIns.activityName != 'End'}">
					<fmt:formatDate value="${act.histIns.endTime}" type="both" />
					</c:if>
				</td>
				<td style="word-wrap: break-word; word-break: break-all;">${act.comment}</td>
				<td>${act.durationTime}</td>
			</c:if>
			<c:if test="${act.status == 'claim'}">
				<td>${act.task.name}</td>
				<td>${act.assigneeName}</td>
				<td>
					<fmt:formatDate value="${act.task.createTime}" type="both" />
				</td>
				<td></td>
				<td style="word-wrap: break-word; word-break: break-all;"></td>
				<td></td>
			</c:if>
		</tr>
	</c:forEach>
</table>